//
//  YJXCollectionViewTitleCollectionViewCell.m
//  IntegralMall
//
//  Created by 易金鑫 on 2017/10/16.
//  Copyright © 2017年 Toocms. All rights reserved.
//

#import "YJXCollectionViewTitleCollectionViewCell.h"

@interface YJXCollectionViewTitleCollectionViewCell()



@end

@implementation YJXCollectionViewTitleCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {

        self.backgroundColor = [UIColor whiteColor];
        [self createUI];
        
    }
    return self;
    
}

-(void)createUI{


    _rightLineView = [[UIView alloc] init];
    _rightLineView.frame = Rect(self.width - 1, 0, 1, self.height);
    [self.contentView addSubview:_rightLineView];
//    _rightLineView.backgroundColor = HexColor(@"f5f5f5");
    _rightLineView.backgroundColor = Graycolor;

    _bottomLineView = [[UIView alloc] init];
    _bottomLineView.frame = Rect(self.width / 6, self.height - 1, self.width / 3 * 2 , 2);
    [self.contentView addSubview:_bottomLineView];


    _titleLabel = [[UILabel alloc] init];
    _titleLabel.frame = Rect(0, 0, self.width - 1, self.height - 1);
    [self.contentView addSubview:_titleLabel];
    _titleLabel.font = [UIFont systemFontOfSize:14];
    _titleLabel.backgroundColor = Graycolor;
    _titleLabel.textAlignment = NSTextAlignmentCenter;

}
@end
